package com.eight.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eight.dao.ToDoMapper;
import com.eight.pojo.SysToDo;
import com.eight.service.ToDoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToDoServiceImpl extends ServiceImpl<ToDoMapper,SysToDo> implements ToDoService {
    /*注入todoDao层*/
    @Autowired private ToDoMapper toDoMapper;

    /**
     * 查询7条待办
     * @return 返回七条代办
     */
    @Override
    public List<SysToDo> selectSevenToDo() {
        return toDoMapper.selectSevenToDo();
    }
}
